package spec.lijunyao.unit3.outclazz.ball;

public class Football extends Ball {

    String unTouchPart;

    public Football(String name, String daxiao, String caizhi, String zhongliang, String renqun){
        super(name, daxiao, caizhi, zhongliang, renqun);
    }

    public Football(String name, String daxiao, String caizhi, String zhongliang, String renqun, String unTouchPart){
        super(name, daxiao, caizhi, zhongliang, renqun);
        this.unTouchPart = unTouchPart;
    }

    /**
     * 正式比赛方法
     * @param playerNum     运动员数量
     * @param cpNum          裁判人数
     * @return
     */
    String play(int playerNum, int cpNum){
        String s = super.play();
        return s + "。比赛运动员人数" + playerNum + "，裁判人数" + cpNum;
    }

    /**
     * 小场子娱乐
     * @param playerNum     运动员数量
     * @return
     */
    String play(int playerNum){
        String s = super.play();
        return s + "。小场子运动员人数" + playerNum;
    }
}